package com.jcms.cms.manager.parcel.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jcms.cms.dao.parcel.CourierCompanyDao;
import com.jcms.cms.entity.parcel.CourierCompany;
import com.jcms.cms.manager.parcel.CourierCompanyManager;

@Service
@Transactional
public class CourierCompanyImpl implements CourierCompanyManager {

	
	private CourierCompanyDao dao;

	public CourierCompanyDao getDao() {
		return dao;
	}
	@Autowired
	public void setDao(CourierCompanyDao dao) {
		this.dao = dao;
	}

	@Transactional(readOnly=true)
	public List<CourierCompany> getAll() {
		return dao.getAll();
	}
	public CourierCompany getCompanyById(String id) {
		return dao.getCompanyById(id);
	}
}
